----------------------------------------------------------------------------
-- BorderComponent class.
-- Create a new BorderComponent Class type from our base class
-- @classmod BorderComponent
-- @author v.v.balashoff
-- @license CC BY-NC-SA 4.0
----------------------------------------------------------------------------

local Color = require('libs/colorlibrary/colorlibrary')
local Class = require('leviathan/Class')

local BorderComponent = Class:derive('BorderComponent')

--- Create new object.
-- Create new instance of object.
-- @function new
-- @tparam[opt] int thickness Border thichness (default: 1).
-- @tparam[opt] table color Border color (default: blue = {0, 0, 255}).
function BorderComponent:new(thickness, color)
    self.id = 'BorderComponent'
    self.typeId = 'Renderable'
    self.drawable = true
    self.enabled = true

    self.thickness = thickness or 1
    self.color = color or Color.blue
end

return BorderComponent
